package com.example.androidpattern.decorator.classes;

import android.util.Log;

import com.example.androidpattern.decorator.interfaces.IShape;

/**
 * @ClassName: ShapeColor$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2020/12/18$ 17:25$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class ShapeColor extends ShapeDecorator {
    private static final String TAG = "ShapeColor";
    private String color;

    public ShapeColor(IShape shape, String color) {
        super(shape);
        this.color = color;
    }

    @Override
    public void display() {
        Log.d(TAG, "display: " + color);
        super.display();
    }
}
